/**
 * ======================================
 * 辖区管理列表
 * author: SKY-D
 * file: jurisdiction-class.js
 * date: 2022/6/12 14:16
 * ======================================
 */
import baseClass from '@/list/baseClass'
import _ from 'lodash'
export default class JurisdictionClass extends baseClass {
  constructor(prop) {
    super(prop)
    console.log('prop', prop)
    this.id = _.get(prop, 'id', '')
    this.index = _.get(prop, 'id', '')
    this.province = _.get(prop, 'province', '')
    this.city = _.get(prop, 'city', '')
    this.area = _.get(prop, 'area', '')
    this.street = _.get(prop, 'street', '')
    this.provinceName = _.get(prop, 'province_name', '')
    this.cityName = _.get(prop, 'city_name', '')
    this.areaName = _.get(prop, 'area_name', '')
    this.streetName = _.get(prop, 'street_name', '')
    this.admins = _.get(prop, 'admins', '')
    this.adminNames = _.get(prop, 'adminNames', '')
    this.note = _.get(prop, 'note', '')
  }
  list() {
    return [
      {
        name: '序号',
        key: 'index',
        fixed: '',
        edit: false,
        show: true,
        value: ''
      },
      {
        name: '省',
        key: 'provinceName',
        fixed: '',
        edit: false,
        show: true,
        value: ''
      },
      {
        name: '市',
        key: 'cityName',
        fixed: '',
        edit: false,
        show: true,
        value: ''
      },
      {
        name: '区',
        key: 'areaName',
        fixed: '',
        edit: false,
        show: true,
        value: ''
      },
      {
        name: '街道',
        key: 'streetName',
        fixed: '',
        edit: false,
        show: true,
        value: ''
      },
      {
        name: '管理人',
        key: 'adminNames',
        fixed: '',
        edit: false,
        show: true,
        value: ''
      },
      {
        name: '备注',
        key: 'note',
        fixed: '',
        edit: false,
        show: true,
        value: '300'
      },
      {
        name: '操作',
        key: 'action',
        fixed: '',
        edit: false,
        show: true,
        value: 150
      }
    ]
  }
}
